<template>
  <view class="main">
    <navigator url="/pages/set_info/set_info" class="user-box">
      <image class="avatar" src="/static/images/star.png" mode="aspectFill"></image>
      <view class="info-box">
        <view class="name">门店名称</view>
        <view class="level-box">
          <view class="text">185****1234</view>
          <image class="next" src="../../static/images/next.png"></image>
        </view>
        <view class="address">湖南省长沙市岳麓区绿地中央广场5栋905</view>
      </view>
    </navigator>

    <view class="module-box">
      <view class="title-box">
        <view class="title">商品管理</view>
      </view>
      <view class="func-box">
        <navigator url="/pages/goods_list/goods_list" class="func">
          <image class="icon" src="../../static/images/my-wait-pay.png"></image>
          <view class="text">商品列表</view>
        </navigator>
        <navigator url="/pages/add_goods/add_goods" class="func">
          <image class="icon" src="../../static/images/my-wait-get.png"></image>
          <view class="text">新增商品</view>
        </navigator>
        <navigator url="/pages/spec_list/spec_list" class="func">
          <image class="icon" src="../../static/images/my-wait-pay.png"></image>
          <view class="text">规格列表</view>
        </navigator>
        <navigator url="/pages/type_list/type_list" class="func">
          <image class="icon" src="../../static/images/my-wait-pay.png"></image>
          <view class="text">分类列表</view>
        </navigator>
      </view>
    </view>

    <view class="module-box">
      <view class="title-box">
        <view class="title">优惠券管理</view>
      </view>
      <view class="func-box">
        <navigator url="/pages/coupon_list/coupon_list" class="func">
          <image class="icon" src="../../static/images/my-wait-pay.png"></image>
          <view class="text">优惠券列表</view>
        </navigator>
        <navigator url="/pages/send_coupon/send_coupon" class="func">
          <image class="icon" src="../../static/images/my-wait-get.png"></image>
          <view class="text">发放优惠券</view>
        </navigator>
      </view>
    </view>
    <view class="module-box">
      <view class="title-box">
        <view class="title">用户管理</view>
      </view>
      <view class="func-box">
        <navigator url="/pages/user_list/user_list" class="func">
          <image class="icon" src="../../static/images/my-wait-pay.png"></image>
          <view class="text">用户列表</view>
        </navigator>
      </view>
    </view>

  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  onLoad: function (options) {
  },

  methods: {},

}
</script>

<style lang="scss">
.main {
  .user-box {
    display: flex;
    padding: 30rpx;
    background: #fff;

    .avatar {
      width: 140rpx;
      height: 140rpx;
      border-radius: 50%;
    }

    .info-box {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex: 1;
      margin-left: 20rpx;


      .name {
        font-size: 34rpx;
        font-weight: bold;
      }

      .level-box {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .text {
          color: #999;
          font-size: 28rpx;
        }

        .next {
          width: 24rpx;
          height: 30rpx;
        }
      }

      .address {
        color: #999;
      }
    }
  }

  .module-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: 20rpx;
    padding: 30rpx;
    border-radius: 20rpx;

    .title-box {
      display: flex;
      justify-content: space-between;

      .title {
        font-size: 32rpx;
      }
    }

    .func-box {
      display: flex;
      margin-top: 30rpx;
      flex-flow: wrap;

      .func {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        width: calc(100% / 4);

        .icon {
          width: 48rpx;
          height: 48rpx;
          margin-bottom: 14rpx;
        }

        .text {
          font-size: 28rpx;
        }
      }
    }
  }

}
</style>

